package demo3;

import com.sun.org.apache.bcel.internal.generic.NEW;

public class TestComputer {
    public static void main(String[] args) {
        Computer computer = new Computer();

        computer.powerOn();
        System.out.println("==========================");

        //使用鼠标设备
        computer.usbDevice(new Mouse());

        System.out.println("==========================");
        //使用键盘设备
        computer.usbDevice(new keyBoard());
        System.out.println("==========================");

        computer.powerOff();
    }
}
